package com.zk.shop.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户表
 */
public class User implements Serializable {
    private int userId;     //用户id
    private String userName;    //用户姓名
    private String userPwd;     //用户密码
    private String userTel;     //用户电话
    private String email;       //用户邮箱
    private Date birthday;    //用户生日
    private String realName;    //用户真实姓名
    private int sex;            //用户性别
    private String address;     //用户地址
    private String userPhoto;   //用户头像
    private  int flag;         //用户状态 1表禁用 0表可用

    public User() {
    }

    public User(String userName, String userPwd, String userTel, String email, String realName, int sex, String address, String userPhoto) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userTel = userTel;
        this.email = email;
        this.realName = realName;
        this.sex = sex;
        this.address = address;
        this.userPhoto = userPhoto;
    }

    public User(int userId, String userPwd) {
        this.userId = userId;
        this.userPwd = userPwd;
    }

    public User(int userId) {
        this.userId = userId;
    }

    public User(String userName) {
        this.userName = userName;
    }

    public User(String userName, String userPwd, String userTel, String email) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userTel = userTel;
        this.email = email;
    }

    public User(int userId, String userName, String userPwd, String address) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.address = address;
    }

    public User(int userId, String userName, String userPwd, String userTel, String email, Date birthday, String realName, int sex, String address, String userPhoto, int flag) {
        this.userId = userId;
        this.userName = userName;
        this.userPwd = userPwd;
        this.userTel = userTel;
        this.email = email;
        this.birthday = birthday;
        this.realName = realName;
        this.sex = sex;
        this.address = address;
        this.userPhoto = userPhoto;
        this.flag = flag;
    }

    public User(int userId, String userName, String userTel, String email, String realName, String address) {
        this.userId = userId;
        this.userName = userName;
        this.userTel = userTel;
        this.email = email;
        this.realName = realName;
        this.address = address;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserTel() {
        return userTel;
    }



    public User(String userName, String userPwd) {
        this.userName = userName;
        this.userPwd = userPwd;
    }



    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public int getFlag() {
        return flag;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }
}
